import App from './App'
import moment from 'moment';
import request from './common/request.js'
import uView from "uview-ui";
import mixLoading from "@/components/mix-loading/mix-loading.vue";
import store from './store'
import hrymd5 from './common/hrymd5';

// import a from "@/common/vconsole.min.js"
// let aaa = new a()

Vue.use(uView);
Vue.use(mixLoading);

//生产环境去除console.log
if(process.env.NODE_ENV === 'development'){
}else{
	if (uni.getSystemInfoSync().platform !== "devtools") {
		console.log = () => {}
	}
}

Vue.config.productionTip = false;
Vue.prototype.$request = request;
Vue.prototype.hrymd5 = hrymd5;
Vue.prototype.moment = moment;
Vue.prototype.$store = store;

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false;
// weixin-js-sdk
Vue.config.ignoredElements.push('wx-open-launch-weapp');

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif